﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Management;
using System.Threading;

using Microsoft.Win32;


namespace Mine
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("multi");
            RegistryKey RegKey = Registry.LocalMachine;
            RegKey = RegKey.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0");
            Object cpuSpeed = RegKey.GetValue("~MHz");
            Object cpuIdentifier = RegKey.GetValue("ProcessorNameString");
           string s=String.Format("{0} @ {1} MHz.txt", cpuIdentifier, cpuSpeed);


            //return to calling method
            System.IO.TextWriter tw = new System.IO.StreamWriter(s);
            Tester test = new Tester();
            test.TestAll(tw,s);
            tw.Close();
           //  System.Diagnostics.Process.Start(s);
        }
    }
}
